import models.Role;
import models.User;
import data.AuthDAO;


public class Main {
	static void testAuth(){
		AuthDAO dao = new AuthDAO();
		User user = dao.authenticate("thanh", "123456");
		System.out.println(user.getId() + " " + user.getUserName());
		for(Role r : user.getRoles()){
			System.out.println(r.getId() + " " + r.getName());
		}
	}
	public static void main(String[] args ){
		/*new Filters().init();
		new Routes().init();*/
		
		testAuth();

	}
}